From son at openbx.net Sun Oct 5 21:43:54 2003 From: son at openbx.net (Son To) Date: Mon Oct 6 01:46:34 2003 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 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 > From taj at linuxgrrls.org Mon Oct 6 04:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon Oct 6 03:31:06 2003 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 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 taj at linuxgrrls.org Mon Oct 6 04:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon Oct 6 03:31:08 2003 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 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 david.garnier at trusted-logic.fr Mon Oct 6 08:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon Oct 6 08:19:53 2003 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 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: Fri Oct 10 18:26:40 2003 Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 19:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Oct 10 18:42:36 2003 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri Oct 10 19:34:56 2003 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only 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 20:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Oct 10 19:39:47 2003 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 20:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Oct 10 19:44:01 2003 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri Oct 10 21:23:49 2003 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > 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 23:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Oct 10 22:07:46 2003 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 13:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat Oct 11 12:21:54 2003 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Mon Oct 13 07:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon Oct 13 06:34:15 2003 Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 12:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu Oct 16 10:30:03 2003 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 09:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu Oct 16 13:02:20 2003 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 15:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu Oct 16 13:30:20 2003 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 09:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu Oct 16 13:39:54 2003 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx@linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 12:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Oct 17 11:16:42 2003 Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Sat Oct 18 02:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat Oct 18 06:16:35 2003 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx@linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx@linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon Oct 20 22:59:52 2003 Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 21:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue Oct 21 01:22:12 2003 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Tue Oct 21 02:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Oct 21 01:32:20 2003 Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx@linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue Oct 21 07:33:30 2003 Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue Oct 21 07:46:00 2003 Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 08:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Oct 21 07:59:16 2003 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue Oct 21 11:35:51 2003 Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 14:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue Oct 21 12:08:17 2003 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 09:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue Oct 21 13:44:05 2003 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue Oct 21 14:02:13 2003 Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 10:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue Oct 21 14:24:34 2003 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed Oct 22 07:58:04 2003 Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 09:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed Oct 22 08:16:20 2003 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 10:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed Oct 22 09:02:56 2003 Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 10:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed Oct 22 09:06:00 2003 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 08:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed Oct 22 12:05:44 2003 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed Oct 22 13:22:30 2003 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu Oct 23 06:30:42 2003 Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Thu Oct 23 08:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu Oct 23 06:41:39 2003 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu Oct 23 08:24:10 2003 Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 09:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu Oct 23 08:38:11 2003 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu Oct 23 08:51:01 2003 Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 05:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu Oct 23 09:15:19 2003 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 10:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu Oct 23 09:21:06 2003 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 05:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu Oct 23 09:39:01 2003 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu Oct 23 10:00:44 2003 Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 06:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu Oct 23 10:12:33 2003 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 11:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu Oct 23 10:20:26 2003 Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx@linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu Oct 23 10:47:24 2003 Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu Oct 23 12:27:22 2003 Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 11:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu Oct 23 15:03:48 2003 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 11:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu Oct 23 15:07:23 2003 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 20:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu Oct 23 19:46:09 2003 Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 16:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu Oct 23 19:58:57 2003 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 21:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu Oct 23 20:23:04 2003 Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx@linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Wed Oct 29 16:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed Oct 29 05:17:06 2003 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete@latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete@latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Wed Oct 29 05:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed Oct 29 05:54:57 2003 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete@latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete@latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Wed Oct 29 01:00:41 2003 From: son at openbx.net (Son To) Date: Wed Oct 29 05:55:23 2003 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Mon Oct 6 01:43:54 2003 From: son at openbx.net (Son To) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 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 > From taj at linuxgrrls.org Mon Oct 6 03:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 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 taj at linuxgrrls.org Mon Oct 6 03:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 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 david.garnier at trusted-logic.fr Mon Oct 6 08:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 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 18:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 18:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 19:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only 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 19:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 19:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 21:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > 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 22:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 12:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Mon Oct 13 06:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 10:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 13:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:45:51 2005 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 13:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 13:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx@linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 11:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Sat Oct 18 06:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx@linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx@linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Mon Oct 20 04:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 01:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Tue Oct 21 01:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx@linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 07:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 07:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 07:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 11:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 12:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 13:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 14:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 14:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 08:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:52 2005 Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 08:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 09:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 09:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 12:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 13:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Thu Oct 23 06:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Thu Oct 23 06:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 08:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 08:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 08:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 09:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 09:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 09:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 10:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 10:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 10:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx@linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 10:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 12:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 17:45:53 2005 Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 15:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Fri Jun 3 17:45:54 2005 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 15:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Fri Jun 3 17:45:54 2005 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 19:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:54 2005 Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 20:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Fri Jun 3 17:45:54 2005 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 20:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:54 2005 Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx@linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Wed Oct 29 05:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Fri Jun 3 17:45:54 2005 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete@latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete@latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Wed Oct 29 05:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 17:45:54 2005 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete@latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete@latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Wed Oct 29 06:00:41 2003 From: son at openbx.net (Son To) Date: Fri Jun 3 17:45:54 2005 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Mon Oct 6 01:43:54 2003 From: son at openbx.net (Son To) Date: Fri Jun 3 18:08:12 2005 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 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 > From taj at linuxgrrls.org Mon Oct 6 03:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:12 2005 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 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 taj at linuxgrrls.org Mon Oct 6 03:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:12 2005 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 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 david.garnier at trusted-logic.fr Mon Oct 6 08:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Fri Jun 3 18:08:12 2005 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 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 18:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri Jun 3 18:08:12 2005 Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 18:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:12 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 19:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only 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 19:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 19:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 21:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > 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 22:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 12:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Mon Oct 13 06:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 10:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 13:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 13:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 13:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx@linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 11:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Sat Oct 18 06:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx@linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx@linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx@linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Mon Oct 20 04:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 01:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Tue Oct 21 01:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx@linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 07:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:13 2005 Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 07:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 07:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 11:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 12:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 13:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 14:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 14:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 08:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 08:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 09:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 09:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 12:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 13:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Thu Oct 23 06:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Thu Oct 23 06:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 08:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 08:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:14 2005 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 08:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 09:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 09:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 09:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 10:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 10:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 10:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx@linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 10:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 12:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 15:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 15:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 19:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 20:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 20:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx@linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Wed Oct 29 05:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete@latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete@latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Wed Oct 29 05:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete@latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete@latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Wed Oct 29 06:00:41 2003 From: son at openbx.net (Son To) Date: Fri Jun 3 18:08:15 2005 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week before packaging this release of rxtx with anything :) The changes are going into CVS currently. Thanks -- Trent Jarvi From dmarkman at mac.com Fri Oct 17 23:18:41 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Sat, 18 Oct 2003 01:18:41 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> Message-ID: <898B212E-012A-11D8-A07A-000393DC71BC@mac.com> well, I installed 7b85 and Installer works just fine Dmitry Markman On Thursday, Oct 16, 2003, at 08:41 US/Eastern, Dmitry Markman wrote: > I don't have 7b85 yet :-( > so I'll check that issue later when I'll have it > Dmitry > > > > On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > >> Well, I used the 7B85 installer and a /var/spool/uucp directory did >> not get created. Thats why I posted this message :-) >> >> M. >> >> Am 16.10.2003 um 14:04 schrieb Dmitry Markman: >> >>> thanks for the hint, Moritz >>> >>> you don't have to worry about that: >>> installer creates uucp directory and sets appropriate permissions >>> I checked installer on 7B74 build and it works correctly >>> >>> but you have to know that Stuffit 8.0 has a bug so it doesn't >>> preserve x permission >>> you have to upgrade to 8.0.1 >>> but even then don't use their archive via rename technology >>> because it still has the very same bug, use DnD to StuffitExpander >>> >>> Dmitry Markman >>> >>> >>> >>> >>> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >>> >>>> Hi, >>>> >>>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>>> OSX 10.3. All you need to do is to change the location of the >>>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>>> the directory /var/spool/uucp. Make sure, the read-write >>>> permissions on the directory are correct. >>>> You'll get a "port in use Exception" otherwise. >>>> >>>> Greetings >>>> >>>> Moritz >>>> >>>> _______________________________________________ >>>> Rxtx mailing list >>>> Rxtx at linuxgrrls.org >>>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>> Dmitry Markman, PhD >>> The Concord Consortium, Concord MA >>> 978-371-1327 >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From p_narayanamurthy at yahoo.com Sun Oct 19 21:38:47 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Sun, 19 Oct 2003 20:38:47 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Hi, i am trying to do port communication on mac... when i am detecting the ports (USB on MAC os 10.x later version)..... there are two ports deisplayed respectively /dev/tty.irda /dev/cu.irda when i am trying to open these ports it is returning null and portinuseexception is throwed.... that to it is giving a message like this.. portinuseexception by an unkownapplication... let me know the details.... please help me in this regards. bye __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Mon Oct 20 18:25:16 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 20 Oct 2003 20:25:16 -0400 Subject: [Rxtx] hi In-Reply-To: <20031020033847.86248.qmail@web40906.mail.yahoo.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> Message-ID: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> do you really want to communicate to your device through the infra-red port? I don't think MAC OS X has a good IRDA support, maybe I'm wrong I'm not sure about RXTX support of the IRDA Dmitry Markman On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > Hi, > i am trying to do port communication on mac... > when i am detecting the ports (USB on MAC os 10.x > later version)..... > there are two ports deisplayed respectively > /dev/tty.irda > /dev/cu.irda > > when i am trying to open these ports it is returning > null and portinuseexception is throwed.... > that to it is giving a message like this.. > > portinuseexception by an unkownapplication... > > let me know the details.... > please help me in this regards. > bye > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Mon Oct 20 18:32:17 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 01:32:17 +0100 (BST) Subject: [Rxtx] hi In-Reply-To: <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> References: <20031020033847.86248.qmail@web40906.mail.yahoo.com> <0B4DB1A4-035D-11D8-BBD9-000393DC71BC@mac.com> Message-ID: On Mon, 20 Oct 2003, Dmitry Markman wrote: > do you really want to communicate to your device through the infra-red > port? > > I don't think MAC OS X has a good IRDA support, maybe I'm wrong > I'm not sure about RXTX support of the IRDA > It should be able to work. There may need to be some conditional code added to SerialImp.c::configure_port(). It looks like there is a tty interface provided for the kernel but perhaps one or more of the calls fail and need to be handled for IRDA. In that case, enumeration and opening the port would fail by default currently. > On Oct 19, 2003, at 11:38 PM, pedapudi narayana murthy wrote: > > > Hi, > > i am trying to do port communication on mac... > > when i am detecting the ports (USB on MAC os 10.x > > later version)..... > > there are two ports deisplayed respectively > > /dev/tty.irda > > /dev/cu.irda > > > > when i am trying to open these ports it is returning > > null and portinuseexception is throwed.... > > that to it is giving a message like this.. > > > > portinuseexception by an unkownapplication... > > > > let me know the details.... > > please help me in this regards. > > bye > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Tue Oct 21 00:36:49 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:36:49 -0700 (PDT) Subject: [Rxtx] thanks for the reply Message-ID: <20031021063649.63883.qmail@web40906.mail.yahoo.com> Hi Thanks for the reply... let me know few details..... 1) are /dev/tty.irda and /dev/cu.irda these both are not (USB Ports or serial ports) ports? Why i am asking this question is u used a word infrared ports.... please let me know....what are the possible (USB or Serial Ports on MAC)... and how can i do serial port communication on MAC. i am using USB Serial port adapter.... I am very much need of this...... please let me know... Thanks and Regards Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Tue Oct 21 00:49:21 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Mon, 20 Oct 2003 23:49:21 -0700 (PDT) Subject: [Rxtx] What are the serial ports on MAC Message-ID: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Hi I am using USB serial port adapter ... this is the code i have written import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getPortType() == CommPortIdentifier.PORT_SERIAL ) { if ( portId.getName().equals( "/dev/tty.irda" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } } }catch(Throwable t){} } When i use this code it is detecting only two ports and they are /dev/tty.irda and /dev/cu.irda this ports are serial ports or not...i am not able to understand....and when i am trying to connect these ports by the above code....so it is giving portinuseexception..... Many Thanks Narayana Murthy __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Tue Oct 21 00:59:14 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue, 21 Oct 2003 07:59:14 +0100 (BST) Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: <20031021064921.16207.qmail@web40911.mail.yahoo.com> References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: On Mon, 20 Oct 2003, pedapudi narayana murthy wrote: > Hi > I am using USB serial port adapter ... > this is the code i have written > > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > if ( portId.getPortType() == > CommPortIdentifier.PORT_SERIAL ) > { > if ( portId.getName().equals( "/dev/tty.irda" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > } > } > } > }catch(Throwable t){} > } > > When i use this code it is detecting only two ports > and they are > > /dev/tty.irda > and > /dev/cu.irda > > this ports are serial ports or not...i am not able to > understand....and when i am trying to connect these > ports by the above code....so it is giving > portinuseexception..... > > IrDA is Infrared Data Association I'm guessing thats not what you want from the description. rxtx currently supports the following devices on Mac OS X: else if(osName.equals("Mac OS X")) { String[] Temp = { // Keyspan USA-28X adapter, USB port 1 "cu.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 1 "tty.KeyUSA28X191.", // Keyspan USA-28X adapter, USB port 2 "cu.KeyUSA28X181.", // Keyspan USA-28X adapter, USB port 2 "tty.KeyUSA28X181.", // Keyspan USA-19 adapter "cu.KeyUSA19181.", // Keyspan USA-19 adapter "tty.KeyUSA19181." }; Dmitry will be more familiar with Mac OS X but if you are trying to plug something into your computer it is probably not going to be IrDA. From p_narayanamurthy at yahoo.com Tue Oct 21 04:39:14 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 03:39:14 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021103914.62203.qmail@web40911.mail.yahoo.com> hi How can we know that the USB adapter is installed properly and how can we know what are the USB ports available in that MAC machine......is there any command to see them... and can i have a piece of code to open a port on MAC... Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Tue Oct 21 05:11:42 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 21 Oct 2003 13:11:42 +0200 Subject: [Rxtx] hi In-Reply-To: <20031021103914.62203.qmail@web40911.mail.yahoo.com> References: <20031021103914.62203.qmail@web40911.mail.yahoo.com> Message-ID: <595E4196-03B7-11D8-A13E-000393719396@gmx.de> Hi, I have a usb-serial adapter which shows up as /dev/tty.usbserial-FTAQ3QX8. But that depends on the model. But of course you need to install a driver first. I got mine from http://www.ftdichip.com/ for the keyspan adapter, there is a driver at http://www.keyspan.com/products/usb/usa28x/ Once installed you should see your /dev/tty.usbserial**** device and be able to connect to it with rxtx. I got one more problem (port in use exception) because I did not have the /var/spool/uucp directory on my systems (also check for read-write access to that directory) where rxtx stores the lock file. Greetings Moritz Am 21.10.2003 um 12:39 schrieb pedapudi narayana murthy: > hi > How can we know that the USB adapter is installed > properly > and how can we know what are the USB ports available > in that MAC machine......is there any command to see > them... > and can i have a piece of code to open a port on > MAC... > > > Many Thanks > > > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Tue Oct 21 06:47:25 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 08:47:25 -0400 Subject: [Rxtx] What are the serial ports on MAC In-Reply-To: References: <20031021064921.16207.qmail@web40911.mail.yahoo.com> Message-ID: mac os x code doesn't use predefine list of the ports: it discovers it on the fly with IOKit API: kern_return_t createSerialIterator(io_iterator_t *serialIterator) { kern_return_t kernResult; mach_port_t masterPort; CFMutableDictionaryRef classesToMatch; if ((kernResult=IOMasterPort(NULL, &masterPort)) != KERN_SUCCESS) { printf( "IOMasterPort returned %d\n", kernResult); return kernResult; } if ((classesToMatch = IOServiceMatching(kIOSerialBSDServiceValue)) == NULL) { printf( "IOServiceMatching returned NULL\n" ); return kernResult; } CFDictionarySetValue(classesToMatch, CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes)); kernResult = IOServiceGetMatchingServices(masterPort, classesToMatch, serialIterator); if (kernResult != KERN_SUCCESS) { printf( "IOServiceGetMatchingServices returned %d\n", kernResult); } return kernResult; } you filter devices from kIOSerialBSDServiceValue class by selector kIOSerialBSDAllTypes so you you will get all serial devices irda, modems included in initial rxtx implementation I was more specific and filtered devices by kIOSerialBSDRS232Type in that case you wouldn't get irda device at all amyway you definitely have to install driver for your adapter and plug that adapter into the computer, driver (if was properly installed) will discover your device immediately and you will be able to see it in /dev directory: devices like > cu.KeyUSA28X191 etc look for exact format of device name in the driver documentation On Oct 21, 2003, at 2:59 AM, Trent Jarvi wrote: > else if(osName.equals("Mac OS X")) > { > String[] Temp = { > // Keyspan USA-28X adapter, USB port 1 > "cu.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 1 > "tty.KeyUSA28X191.", > // Keyspan USA-28X adapter, USB port 2 > "cu.KeyUSA28X181.", > // Keyspan USA-28X adapter, USB port 2 > "tty.KeyUSA28X181.", > // Keyspan USA-19 adapter > "cu.KeyUSA19181.", > // Keyspan USA-19 adapter > "tty.KeyUSA19181." > }; > Dmitry Markman From p_narayanamurthy at yahoo.com Tue Oct 21 07:05:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Tue, 21 Oct 2003 06:05:39 -0700 (PDT) Subject: [Rxtx] hi Message-ID: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Hi I Have installed the driver from www.kesyspan.com But after installation if is the result by typing the command ls /dev* i am not able to see the USB ports... can u help me in these regards... Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Tue Oct 21 07:27:58 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 21 Oct 2003 09:27:58 -0400 Subject: [Rxtx] hi In-Reply-To: <20031021130539.94671.qmail@web40911.mail.yahoo.com> References: <20031021130539.94671.qmail@web40911.mail.yahoo.com> Message-ID: <6303A33C-03CA-11D8-BFCF-000393DC71BC@mac.com> did you connect your adapter (even without to connecting to real device) On Oct 21, 2003, at 9:05 AM, pedapudi narayana murthy wrote: > Hi > I Have installed the driver from www.kesyspan.com > But after installation if is the result by typing the > command ls /dev* > i am not able to see the USB ports... > can u help me in these regards... > Thanks > Narayana > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Wed Oct 22 01:01:39 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 00:01:39 -0700 (PDT) Subject: [Rxtx] i have two serial ports on MAC not able to open them Message-ID: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Hi I have detected to Seril ports on My MAC machine i am not able to open them .....can u please help me in this regards or else is there any mistake in my program please take a look import gnu.io.*; import gnu.io.CommPortIdentifier; //RXTX 2.1.X public class MacCommunication { SerialPort port=null; public MacCommunication() { scanPorts(); } public static void main(String args[]) { new MacCommunication(); } public void scanPorts() { try { int index = 0; for(java.util.Enumeration en = CommPortIdentifier.getPortIdentifiers(); en.hasMoreElements() { CommPortIdentifier portId = (CommPortIdentifier)en.nextElement(); if(portId == null) continue; if(portId.getPortType() == CommPortIdentifier.PORT_SERIAL) { String name = portId.getName(); System.out.println("Name "+name); //add that name to the vector if you wish if ( portId.getName().equals( "/dev/tty.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } if ( portId.getName().equals( "/dev/cu.usbserial0" ) ) { try { port = (SerialPort) portId.open("MacCommunication", 2000); System.out.println("Open"); } catch (PortInUseException e) {} break; } } } }catch(Throwable t){} } Please tell me why i am not able to open.... When i am trying to open i am getting a null....returned...what could be the reason for this Many Thanks Narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Wed Oct 22 01:16:18 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 08:16:18 +0100 (BST) Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > Hi > I have detected to Seril ports on My MAC machine i am > not able to open them .....can u please help me in > this regards or else is there any mistake in my > program > please take a look > > import gnu.io.*; > import gnu.io.CommPortIdentifier; //RXTX 2.1.X > public class MacCommunication > { > > SerialPort port=null; > public MacCommunication() > { > scanPorts(); > } > > public static void main(String args[]) > { > new MacCommunication(); > } > public void scanPorts() > { > try > { > int index = 0; > for(java.util.Enumeration en = > CommPortIdentifier.getPortIdentifiers(); > en.hasMoreElements() > { > CommPortIdentifier portId = > (CommPortIdentifier)en.nextElement(); > if(portId == null) continue; > if(portId.getPortType() == > CommPortIdentifier.PORT_SERIAL) > { > String name = portId.getName(); > System.out.println("Name "+name); > //add that name to the vector if you wish > > if ( portId.getName().equals( > "/dev/tty.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > if ( portId.getName().equals( "/dev/cu.usbserial0" ) > ) > { > try > { > port = (SerialPort) > portId.open("MacCommunication", 2000); > System.out.println("Open"); > } > catch (PortInUseException e) > {} > break; > } > > } > } > }catch(Throwable t){} > } > > > Please tell me why i am not able to open.... > When i am trying to open i am getting a > null....returned...what could be the reason for this > > What port names are listed in your program? I see you try to print them out. While using try/catch, try to print out what the exception message is in the catch scope. try { foo(); } catch ( Exception e ) { System.out.println(e.getMessage()); e.printStackTrace(); System.out.println(e.toString()); ... } From taj at linuxgrrls.org Wed Oct 22 02:02:53 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:02:53 +0100 (BST) Subject: [Rxtx] Re: the two ports and exception is (fwd) Message-ID: ---------- Forwarded message ---------- Date: Wed, 22 Oct 2003 08:43:34 +0100 (BST) From: Trent Jarvi To: pedapudi narayana murthy Subject: Re: the two ports and exception is On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > it is detecting four ports > > /dev/tty.irda > /dev/cu.irda > > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > since i have given equls condition it will be > connected only when the last two ports are matched.. > > the exception is > portinuse exception > Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. From taj at linuxgrrls.org Wed Oct 22 02:05:57 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 22 Oct 2003 09:05:57 +0100 (BST) Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: <20031022080219.10711.qmail@web40905.mail.yahoo.com> References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > i have given the command which u have given... > But it say's there is no such file or directory... > > I suspect the install prcoess Dmitry has usually creates the directory. I do not have a Mac here so it would be wise to wait for his answer in a few hours. The directory is what is listed in the source as the lock directory for Mac. I don't want to blindly suggest changes to your system though. From dmarkman at mac.com Wed Oct 22 05:09:21 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 22 Oct 2003 07:09:21 -0400 Subject: [Rxtx] Re: it say's no such file or directory In-Reply-To: References: <20031022080219.10711.qmail@web40905.mail.yahoo.com> Message-ID: <2FB8C91B-0480-11D8-BFCF-000393DC71BC@mac.com> I didn't get few messages what command? could you tell what kind of exception if any you can see while your program is running? did you run rxtx installer? could you sen result of the command ls /dev? after installer keyspan driver? On Oct 22, 2003, at 4:05 AM, Trent Jarvi wrote: > > > On Wed, 22 Oct 2003, pedapudi narayana murthy wrote: > >> i have given the command which u have given... >> But it say's there is no such file or directory... >> >> > > I suspect the install prcoess Dmitry has usually creates the > directory. I > do not have a Mac here so it would be wise to wait for his answer in a > few > hours. > > The directory is what is listed in the source as the lock directory for > Mac. I don't want to blindly suggest changes to your system though. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Bob_Jacobsen at lbl.gov Wed Oct 22 06:26:03 2003 From: Bob_Jacobsen at lbl.gov (Bob Jacobsen) Date: Wed, 22 Oct 2003 05:26:03 -0700 Subject: [Rxtx] i have two serial ports on MAC not able to open them In-Reply-To: <20031022070139.38251.qmail@web40908.mail.yahoo.com> References: <20031022070139.38251.qmail@web40908.mail.yahoo.com> Message-ID: I use Rxtx for JMRI on MacOS X. It routinely lists multiple versions of a single port, e.g. a port on a Belkin USB adapter will be listed as USA28X181P2.2 /dev/tty.USA28X181P2.2 /dev/cu.USA28X181P2.2 Either of the later two will open OK, but the first one will issue an error message to the console: *** malloc[2595]: error for object 0x45af590: Object already freed being freed then throw an exception: java.lang.UnsatisfiedLinkError: native_psmisc_report_owner at javax.comm.CommPortIdentifier.native_psmisc_report_owner(Native Method) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:344) Incidentally, IRDA-equiped Macs do a similar things, showing three ports for the (one channel) IRDA hardware: IrDA-IrCOMMch-b /dev/tty.IrDA-IrCOMMch-b /dev/cu.IrDA-IrCOMMch-b Again, the latter two work fine, but the first returns an error. I've never attempted to debug about the errors, just bypassed them in the user setup instructions. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen at lbl.gov, 510-486-7355, fax 510-495-2957) Am likely to be behind for next week or so. If it's urgent, please call! From p_narayanamurthy at yahoo.com Wed Oct 22 23:34:32 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Wed, 22 Oct 2003 22:34:32 -0700 (PDT) Subject: [Rxtx] hi this is the command which i have been asked to use Message-ID: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Messages given by.....Trent Jarvi Is the port being used by another application? Perhaps another copy of the one you are working on? rxtx will try to create a lock file in /var/spool/uucp. You can look in that directory to see if there is already a lock file there. You can also make sure you are able to create a lock file in that directory in a shell: touch /var/spool/uucp/testinglockfiles && rm -f /var/spool/uucp/testinglockfiles If the lock fails, you will recieve the message mentioned. And Actually....I have installed the driver pl-2303...from the following site.... http://www.sc-systems.com/products/adaptors/usb_serial.htm i couldn't install this rxtx...so i have done manually.. 1.copying rxtxcomm.jar to /extensions folder 2.libserial.jnilib to /extensions folder after this i have written some code to list serial ports... so it is listed....two ports if i am not connected usb serial port adapter to the system /dev/tty.irda /dev/cu.irda if i am connected the usb serial port adapter it listed four ports /dev/tty.irda /dev/cu.irda /dev/tty.usbserial0 /dev/cu.usbserial0 but when i tried to open either of this four ports... i am getting an portinuse exception.... the code which i have used posted in the previous ports please help me in this regard... Many thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From moritz.gmelin at gmx.de Wed Oct 22 23:45:34 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 23 Oct 2003 07:45:34 +0200 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: <1F41C5D1-051C-11D8-A13E-000393719396@gmx.de> Hi, start by checking if your lock-files-directory exists. Like Trent described in his previous answer. > Messages given by.....Trent Jarvi > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. if it does not exist your're supposed to create that directory manually. mkdir /var/spool/uucp chmod ugo+rwx /var/spool/uucp You have to be root in order to do so. (Are those access rights OK ?) Greetings moritz From p_narayanamurthy at yahoo.com Thu Oct 23 01:28:02 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:28:02 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023072802.68018.qmail@web40901.mail.yahoo.com> yes I have created testinglockfiles in /var/spool/uucp directory... what i have to do next... narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Thu Oct 23 01:38:09 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 08:38:09 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023072802.68018.qmail@web40901.mail.yahoo.com> References: <20031023072802.68018.qmail@web40901.mail.yahoo.com> Message-ID: On Thu, 23 Oct 2003, pedapudi narayana murthy wrote: > yes > I have created testinglockfiles in /var/spool/uucp > directory... > If you have a /var/spool/uucp directory, lockfiles should be possible now. It should be possible for root to open the device. A user (not root) would need to be in the proper group. Dmitry's install setup does this setup automatically. It would be advisable to use his install. The testinglockfiles file may be removed. Creating the uucp directory may interfere with future attempts to use dmitry's install. I don't know. If you have problems with the install dmitry has, I'd recommend working that out rather than reinventing the wheel. From p_narayanamurthy at yahoo.com Thu Oct 23 01:54:52 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 00:54:52 -0700 (PDT) Subject: [Rxtx] yaa i have created testinglockfiles Message-ID: <20031023075452.64827.qmail@web40902.mail.yahoo.com> If i try to install after creating the uucp directory as per the instructions.....i am trying to install the RXTX.pre_install .... But it is stucking up after approximately 2% is done...May i Know why this is happening.. narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 02:19:10 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:19:10 -0400 Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <20031023075452.64827.qmail@web40902.mail.yahoo.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> Message-ID: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > But it is stucking up after approximately 2% is > done...May i Know why this is happening.. > narayana > because you use old installer you can download Jaguar/Panther installer from cvs Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 02:21:04 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 09:21:04 +0100 (BST) Subject: [Rxtx] yaa i have created testinglockfiles In-Reply-To: <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> References: <20031023075452.64827.qmail@web40902.mail.yahoo.com> <93E6C7AC-0531-11D8-BFCF-000393DC71BC@mac.com> Message-ID: On Thu, 23 Oct 2003, Dmitry Markman wrote: > > On Oct 23, 2003, at 3:54 AM, pedapudi narayana murthy wrote: > > > But it is stucking up after approximately 2% is > > done...May i Know why this is happening.. > > narayana > > > > because you use old installer > you can download Jaguar/Panther installer from cvs > I think this will have the proper installer: ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz It contains the material from CVS last Thursday. From dmarkman at mac.com Thu Oct 23 02:42:47 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 04:42:47 -0400 Subject: [Rxtx] hi this is the command which i have been asked to use In-Reply-To: <20031023053432.86584.qmail@web40906.mail.yahoo.com> References: <20031023053432.86584.qmail@web40906.mail.yahoo.com> Message-ID: check your installation: 1, you have to have /var/spool/uucp folder with 775 (rwxrwxr-x) permission 2. folder /Library/Java/Extensions should contain RXTXcomm.jar librxtxSerial.jnilib (not libserial.jnilib it's very old library ) files I don't know what is /extensions folder it's not known folder for Apple's JVM unless you setup it explicitly I'd not recommend to create any custom folders in / directory don't touch / really, it's not for you :-( 3. from terminal run groups or id -Gn command you should see uucp group there On Oct 23, 2003, at 1:34 AM, pedapudi narayana murthy wrote: > Messages given by.....Trent Jarvi > > > Is the port being used by another application? > Perhaps another copy of > the one you are working on? > > rxtx will try to create a lock file in > /var/spool/uucp. You can look > in > that directory to see if there is already a lock file > there. You can > also > make sure you are able to create a lock file in that > directory in a > shell: > > > touch /var/spool/uucp/testinglockfiles && rm -f > /var/spool/uucp/testinglockfiles > > > If the lock fails, you will recieve the message > mentioned. > > > > And Actually....I have installed the driver > pl-2303...from the following site.... > > http://www.sc-systems.com/products/adaptors/usb_serial.htm > > i couldn't install this rxtx...so i have done > manually.. > 1.copying rxtxcomm.jar to /extensions folder > 2.libserial.jnilib to /extensions folder > > > after this i have written some code to list serial > ports... > > so it is listed....two ports if i am not connected usb > serial port adapter to the system > /dev/tty.irda > /dev/cu.irda > > if i am connected the usb serial port adapter it > listed four ports > /dev/tty.irda > /dev/cu.irda > /dev/tty.usbserial0 > /dev/cu.usbserial0 > > > > but when i tried to open either of this four ports... > i am getting an portinuse exception.... > > the code which i have used posted in the previous > ports > > > please help me in this regard... > > > Many thanks > narayana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From p_narayanamurthy at yahoo.com Thu Oct 23 03:04:31 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:04:31 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023090431.28827.qmail@web40908.mail.yahoo.com> I have downloaded from the link given by you ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz i took the mac compatible file to install that is.... MACOSX_IDE/forPackageMaker/rxtx.pkg is this the correct one i am using... when i am trying to install this i am getting stucked at approximately 2%... i don't know why this is happening.. can u please explain me... Many Thanks Naryana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From dmarkman at mac.com Thu Oct 23 03:16:23 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 23 Oct 2003 05:16:23 -0400 Subject: [Rxtx] still it is not able to installl In-Reply-To: <20031023090431.28827.qmail@web40908.mail.yahoo.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> Message-ID: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> I tried RXTX_Jag installer from rxtx-2.1-7pre17.tar.gz and I didn't see any problem with that can you see some console messages related to installation? On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > I have downloaded from the link given by you > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > i took the mac compatible file to install that is.... > MACOSX_IDE/forPackageMaker/rxtx.pkg > > is this the correct one i am using... > > when i am trying to install this i am getting stucked > at approximately 2%... > i don't know why this is happening.. > can u please explain me... > > Many Thanks > > > Naryana > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at linuxgrrls.org Thu Oct 23 03:20:25 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 10:20:25 +0100 (BST) Subject: [Rxtx] still it is not able to installl In-Reply-To: <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com> <923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: Unless by some odd chance someone hit a cache someplace, I only see one download of 2.1-7pre17 bash-2.05b$ grep pre17 /var/log/xferlog Thu Oct 23 03:00:14 2003 40 XXX.XXX.216.188 985729 /var/ftp/pub/rxtx/rxtx-2.1-7pre17.tar.gz b _ o a macexplorer@ ftp 0 * c bash-2.05b$ On Thu, 23 Oct 2003, Dmitry Markman wrote: > I tried RXTX_Jag > installer from rxtx-2.1-7pre17.tar.gz > > and I didn't see any problem with that > > can you see some console messages related to installation? > > > > On Oct 23, 2003, at 5:04 AM, pedapudi narayana murthy wrote: > > > I have downloaded from the link given by you > > > > > > ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz > > > > i took the mac compatible file to install that is.... > > MACOSX_IDE/forPackageMaker/rxtx.pkg > > > > is this the correct one i am using... > > > > when i am trying to install this i am getting stucked > > at approximately 2%... > > i don't know why this is happening.. > > can u please explain me... > > > > Many Thanks > > > > > > Naryana > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > > Dmitry Markman > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p_narayanamurthy at yahoo.com Thu Oct 23 03:51:18 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 02:51:18 -0700 (PDT) Subject: [Rxtx] still it is not able to installl Message-ID: <20031023095118.48736.qmail@web40903.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From p_narayanamurthy at yahoo.com Thu Oct 23 05:31:17 2003 From: p_narayanamurthy at yahoo.com (pedapudi narayana murthy) Date: Thu, 23 Oct 2003 04:31:17 -0700 (PDT) Subject: [Rxtx] now i am happy ....since i could open the port Message-ID: <20031023113117.72077.qmail@web40912.mail.yahoo.com> Hi Many Many Thanks When I installed this RXTX_Jag It is working great now i am able to open the port.... I am very thankful to u... Till now i was trying to install...rxtx.pkg...and i couldn't Further if i have any problems i will contact u.. And once again Thanks narayana __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From skejariwal at perigee.com Thu Oct 23 08:08:29 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:08:29 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> Message-ID: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Hi, Following is not an issue but just curious to know why it is happening. I am using the Single Board Computer to talk to the Microcontroller unit through serial ports. The DTR pin on the SBC is hacked to recycle the power on the MCU. Now when the communication is initiated through KERMIT (hoping few ppl on this grp are familiar), the DTR pin goes high(1) which resets the MCU and communication fails. Now when the communication terminates, the DTR is turned off (0) which turns back the MCU on. This DTR handshaking is happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or flowcontrol. As a result, no communication ever takes place. But if I use the RXTX, then everything works fine. I see no issues. The guys on Kermit forum hinted that it has to do with low-level system calls or device drivers. But then how come RXTX is working fine with DTR pin been not flipped during communication initiation and termination. Thanks Ray. From skejariwal at perigee.com Thu Oct 23 08:12:06 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 10:12:06 -0400 Subject: [Rxtx] Fw: DTR handshaking.. Message-ID: <007b01c3996f$a6e5e650$4f00a8c0@Perigee.Perigeellc.com> Sorry for reposting. Wasn't sure if first one went through. ----- Original Message ----- From: "Shreyas Kejariwal" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 10:08 AM Subject: DTR handshaking.. > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > > Thanks > Ray. > > > > From taj at linuxgrrls.org Thu Oct 23 12:46:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 19:46:07 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com> <002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Hi, > > Following is not an issue but just curious to know why it is happening. > > I am using the Single Board Computer to talk to the Microcontroller unit > through serial ports. The DTR pin on the SBC is hacked to recycle the power > on the MCU. Now when the communication is initiated through KERMIT (hoping > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > MCU and communication fails. Now when the communication terminates, the DTR > is turned off (0) which turns back the MCU on. This DTR handshaking is > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > flowcontrol. As a result, no communication ever takes place. > > But if I use the RXTX, then everything works fine. I see no issues. > > The guys on Kermit forum hinted that it has to do with low-level system > calls or device drivers. But then how come RXTX is working fine with DTR pin > been not flipped during communication initiation and termination. > You didn't specify which OS this is happening with. If this is Unix, one could dump the termios data structures with rxtx and kermit. In SerialImp.c there is a dump_termios() function which can be called for debugging. The good old setserial program can be used to explore the port. There must be a difference and the way I'd find it is by dumping the port setting with the above tools or inside the kernel driver. The difference could turn out to be an RXTX bug. Just because it works does not mean its right :). If this is on w32, then one would have to drop into termios.c and start dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides to make w32 look like Unix for this type of issue. From skejariwal at perigee.com Thu Oct 23 13:03:43 2003 From: skejariwal at perigee.com (Shreyas Kejariwal) Date: Thu, 23 Oct 2003 15:03:43 -0400 Subject: [Rxtx] DTR handshaking.. References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Never mind. Everytime the serial port is opened the DTR pin is turned high by the serial port driver and turned low when the serial port is closed. It happened while using RXTX as well. It did not become an issue since the DTR pin was controlled from within our java app which I was unaware at the time of writing my last mail. Thanks for the response. Ray BTW, the OS is linux. ----- Original Message ----- From: "Trent Jarvi" To: "Java RXTX discussion" Sent: Thursday, October 23, 2003 2:46 PM Subject: Re: [Rxtx] DTR handshaking.. > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > Hi, > > > > Following is not an issue but just curious to know why it is happening. > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > through serial ports. The DTR pin on the SBC is hacked to recycle the power > > on the MCU. Now when the communication is initiated through KERMIT (hoping > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets the > > MCU and communication fails. Now when the communication terminates, the DTR > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking or > > flowcontrol. As a result, no communication ever takes place. > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > The guys on Kermit forum hinted that it has to do with low-level system > > calls or device drivers. But then how come RXTX is working fine with DTR pin > > been not flipped during communication initiation and termination. > > > > You didn't specify which OS this is happening with. > > If this is Unix, one could dump the termios data structures with rxtx and > kermit. > > In SerialImp.c there is a dump_termios() function which can be called for > debugging. The good old setserial program can be used to explore the > port. > > There must be a difference and the way I'd find it is by dumping the port > setting with the above tools or inside the kernel driver. > > The difference could turn out to be an RXTX bug. Just because it works > does not mean its right :). > > If this is on w32, then one would have to drop into termios.c and start > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > to make w32 look like Unix for this type of issue. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at linuxgrrls.org Thu Oct 23 13:23:02 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Thu, 23 Oct 2003 20:23:02 +0100 (BST) Subject: [Rxtx] DTR handshaking.. In-Reply-To: <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> References: <20031023090431.28827.qmail@web40908.mail.yahoo.com><923A8A5C-0539-11D8-BFCF-000393DC71BC@mac.com><002901c3996f$25759bb0$4f00a8c0@Perigee.Perigeellc.com> <00cc01c39998$63d83ba0$4f00a8c0@Perigee.Perigeellc.com> Message-ID: On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > Never mind. Everytime the serial port is opened the DTR pin is turned high > by the serial port driver and turned low when the serial port is closed. It > happened while using RXTX as well. It did not become an issue since the DTR > pin was controlled from within our java app which I was unaware at the time > of writing my last mail. > I'll just add this since we have a searchable archive now. It may help someone. In RXTX 2.1 there is some code for 'preopened' ports which could prevent raising and dropping of the control lines on open/close. This is not documented and hidden with some other 'extensions to CommAPI.' These extensions are not recommended but are there for those looking for things not specified by CommAPI. > > > ----- Original Message ----- > From: "Trent Jarvi" > To: "Java RXTX discussion" > Sent: Thursday, October 23, 2003 2:46 PM > Subject: Re: [Rxtx] DTR handshaking.. > > > > > > > > On Thu, 23 Oct 2003, Shreyas Kejariwal wrote: > > > > > Hi, > > > > > > Following is not an issue but just curious to know why it is happening. > > > > > > I am using the Single Board Computer to talk to the Microcontroller unit > > > through serial ports. The DTR pin on the SBC is hacked to recycle the > power > > > on the MCU. Now when the communication is initiated through KERMIT > (hoping > > > few ppl on this grp are familiar), the DTR pin goes high(1) which resets > the > > > MCU and communication fails. Now when the communication terminates, the > DTR > > > is turned off (0) which turns back the MCU on. This DTR handshaking is > > > happening even if I specify to use the Xon/Xoff or RTS/CTS handshaking > or > > > flowcontrol. As a result, no communication ever takes place. > > > > > > But if I use the RXTX, then everything works fine. I see no issues. > > > > > > The guys on Kermit forum hinted that it has to do with low-level system > > > calls or device drivers. But then how come RXTX is working fine with DTR > pin > > > been not flipped during communication initiation and termination. > > > > > > > You didn't specify which OS this is happening with. > > > > If this is Unix, one could dump the termios data structures with rxtx and > > kermit. > > > > In SerialImp.c there is a dump_termios() function which can be called for > > debugging. The good old setserial program can be used to explore the > > port. > > > > There must be a difference and the way I'd find it is by dumping the port > > setting with the above tools or inside the kernel driver. > > > > The difference could turn out to be an RXTX bug. Just because it works > > does not mean its right :). > > > > If this is on w32, then one would have to drop into termios.c and start > > dumping the w32 data structs. I wouldnt trust the Unix API RXTX provides > > to make w32 look like Unix for this type of issue. > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From p.cain at phasefale.com.au Tue Oct 28 22:22:16 2003 From: p.cain at phasefale.com.au (Peter Cain) Date: Wed, 29 Oct 2003 16:22:16 +1100 Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 Message-ID: <200310291622.16415.p.cain@phasefale.com.au> Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 with the latest Java VM on RedHat7.3. While it seems to work ok with my code but i've noticed something interesting. [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox /dev/ttyS0: PORT_OWNED /dev/ttyS1: PORT_OWNED Warning: Name: HorScrollBar Class: XmScrollBar The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. The gui appears but isn't functional, this isnt an issue with rxtx its another problem. Whats more interesting is [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver No serial ports found! Since I've been using assert() calls I hit this one pretty quick. My guess is the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. While this isnt a request for a fix (yet). I'm just letting other know that might stumble into this problem. Anyone tried Java+rxt on RH9 yet ? -- Peter Cain Phasefale Pty Ltd. From taj at linuxgrrls.org Tue Oct 28 22:54:54 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Wed, 29 Oct 2003 05:54:54 +0000 (GMT) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> References: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Being the sucker for punishment that I am I've decided to try out rxt-2.0.5 > with the latest Java VM on RedHat7.3. > > While it seems to work ok with my code but i've noticed something interesting. > > [pete at latte play_pen]$ java -cp BlackBox.jar BlackBox > /dev/ttyS0: PORT_OWNED > /dev/ttyS1: PORT_OWNED > Warning: > Name: HorScrollBar > Class: XmScrollBar > The specified scrollbar value is greater than the maximum > scrollbar value minus the scrollbar slider size. > > The gui appears but isn't functional, this isnt an issue with rxtx its another > problem. Whats more interesting is > > [pete at latte play_pen]$ java -enablesystemassertions -cp BlackBox.jar BlackBox > Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver > No serial ports found! > > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > Hi Peter I have tried BlackBox on rhat 9 current ( linux 2.4.20-20.9 glibc 2.3.2-27.9 Sun jvm 1.4.2_01-b06 ) I've seen the bug you mention (and saw it on rhat 8). I didn't know what to make of it. My system is one thats gone through upgrades not clean installs so I was just listening to see if others saw it. -bash-2.05b# java BlackBox -p /dev/ttyS0 Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyS0 Opening port /dev/ttyS0 /dev/ttyS0: PORT_OWNED -bash-2.05b# java -enablesystemassertions BlackBox -p /dev/ttyS0 Caught java.lang.AssertionError while loading driver gnu.io.RXTXCommDriver Port /dev/ttyS0 not found! No serial ports found! I just figured this was some bug in the GUI. Blackbox code is a bit dated with AWT and some other problems. I didnt place much on observing problems there. Other code appears to work OK. I've no experience with assertions and would not no where to start there. I found it odd that export LD_ASSUME_KERNEL=2.2.5 did not help either. From son at openbx.net Tue Oct 28 23:00:41 2003 From: son at openbx.net (Son To) Date: Wed, 29 Oct 2003 01:00:41 -0500 (EST) Subject: [Rxtx] Rxtx-2.0.5 vs Java 1.4.2-02 In-Reply-To: <200310291622.16415.p.cain@phasefale.com.au> Message-ID: On Wed, 29 Oct 2003, Peter Cain wrote: > Since I've been using assert() calls I hit this one pretty quick. My guess is > the System.loadLibrary( "rxtxSerial" ); in RXTXCommDriver. > > While this isnt a request for a fix (yet). I'm just letting other know that > might stumble into this problem. > > Anyone tried Java+rxt on RH9 yet ? other than permissions of lock files, i had no problems with jdk1.4.2 on rh9 From son at openbx.net Sun Oct 5 18:43:54 2003 From: son at openbx.net (Son To) Date: Sun, 5 Oct 2003 20:43:54 -0400 (EDT) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: Message-ID: Hi All, I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not working. The INSTALL documentation says passing VM properties like java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp but still javax.comm.NoSuchPortException is thrown I'm using rxtx-2.0-5. The mailing list archive is down BTW. many thanks, son On Fri, 24 May 2002, Trent Jarvi wrote: > > or in gnu.io.rxtx.properties: > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > -- > Trent Jarvi > taj at www.linux.org.uk > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From taj at linuxgrrls.org Sun Oct 5 20:30:33 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 6 Oct 2003 03:30:33 +0100 (BST) Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: To bypass the serial port enumeration problem you can just make on of /dev/ttyS* a symbolic link to the USB device. mv /dev/ttyS32 /dev/ttyS32.old ln -s /dev/usb/ttyUSB0 /dev/ttyS32 This should eliinate any question about wether or not rxtx tried to enumerate the port. If rxtx can enumerate the port, it will work. I'm not sure how the USB device is going to behave. It may be that you have to treat this as a USB device and the jusb project is what is needed. I think this should work with rxtx, but I've not tried usb serial devices. http://jusb.sourceforge.net/ is the jusb project. On Sun, 5 Oct 2003, Son To wrote: > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From moritz.gmelin at gmx.de Thu Oct 16 03:31:40 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 11:31:40 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <1065424618.1468.12.camel@nublar.trusted-logic.fr> References: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Message-ID: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Hi, just wanted to let you know, that RXTX (2.1-6 at least) works with OSX 10.3. All you need to do is to change the location of the lockfiles in SerialImp.h to /var/spool/lock or to manually create the directory /var/spool/uucp. Make sure, the read-write permissions on the directory are correct. You'll get a "port in use Exception" otherwise. Greetings Moritz From dmarkman at mac.com Thu Oct 16 06:04:13 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:04:13 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: <8C0DB86C-FFBB-11D7-8C2A-000393719396@gmx.de> Message-ID: thanks for the hint, Moritz you don't have to worry about that: installer creates uucp directory and sets appropriate permissions I checked installer on 7B74 build and it works correctly but you have to know that Stuffit 8.0 has a bug so it doesn't preserve x permission you have to upgrade to 8.0.1 but even then don't use their archive via rename technology because it still has the very same bug, use DnD to StuffitExpander Dmitry Markman On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > Hi, > > just wanted to let you know, that RXTX (2.1-6 at least) works with OSX > 10.3. All you need to do is to change the location of the lockfiles in > SerialImp.h to /var/spool/lock or to manually create the directory > /var/spool/uucp. Make sure, the read-write permissions on the > directory are correct. > You'll get a "port in use Exception" otherwise. > > Greetings > > Moritz > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman, PhD The Concord Consortium, Concord MA 978-371-1327 From moritz.gmelin at gmx.de Thu Oct 16 06:31:59 2003 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Thu, 16 Oct 2003 14:31:59 +0200 Subject: [Rxtx] OS10.3 Hint In-Reply-To: References: Message-ID: Well, I used the 7B85 installer and a /var/spool/uucp directory did not get created. Thats why I posted this message :-) M. Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > thanks for the hint, Moritz > > you don't have to worry about that: > installer creates uucp directory and sets appropriate permissions > I checked installer on 7B74 build and it works correctly > > but you have to know that Stuffit 8.0 has a bug so it doesn't preserve > x permission > you have to upgrade to 8.0.1 > but even then don't use their archive via rename technology > because it still has the very same bug, use DnD to StuffitExpander > > Dmitry Markman > > > > > On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: > >> Hi, >> >> just wanted to let you know, that RXTX (2.1-6 at least) works with >> OSX 10.3. All you need to do is to change the location of the >> lockfiles in SerialImp.h to /var/spool/lock or to manually create the >> directory /var/spool/uucp. Make sure, the read-write permissions on >> the directory are correct. >> You'll get a "port in use Exception" otherwise. >> >> Greetings >> >> Moritz >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> > Dmitry Markman, PhD > The Concord Consortium, Concord MA > 978-371-1327 > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From dmarkman at mac.com Thu Oct 16 06:41:36 2003 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 16 Oct 2003 08:41:36 -0400 Subject: [Rxtx] OS10.3 Hint In-Reply-To: Message-ID: <14A37794-FFD6-11D7-94E0-000393DC71BC@mac.com> I don't have 7b85 yet :-( so I'll check that issue later when I'll have it Dmitry On Thursday, Oct 16, 2003, at 08:31 US/Eastern, Moritz Gmelin wrote: > Well, I used the 7B85 installer and a /var/spool/uucp directory did > not get created. Thats why I posted this message :-) > > M. > > Am 16.10.2003 um 14:04 schrieb Dmitry Markman: > >> thanks for the hint, Moritz >> >> you don't have to worry about that: >> installer creates uucp directory and sets appropriate permissions >> I checked installer on 7B74 build and it works correctly >> >> but you have to know that Stuffit 8.0 has a bug so it doesn't >> preserve x permission >> you have to upgrade to 8.0.1 >> but even then don't use their archive via rename technology >> because it still has the very same bug, use DnD to StuffitExpander >> >> Dmitry Markman >> >> >> >> >> On Thursday, Oct 16, 2003, at 05:31 US/Eastern, Moritz Gmelin wrote: >> >>> Hi, >>> >>> just wanted to let you know, that RXTX (2.1-6 at least) works with >>> OSX 10.3. All you need to do is to change the location of the >>> lockfiles in SerialImp.h to /var/spool/lock or to manually create >>> the directory /var/spool/uucp. Make sure, the read-write permissions >>> on the directory are correct. >>> You'll get a "port in use Exception" otherwise. >>> >>> Greetings >>> >>> Moritz >>> >>> _______________________________________________ >>> Rxtx mailing list >>> Rxtx at linuxgrrls.org >>> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>> >>> >> Dmitry Markman, PhD >> The Concord Consortium, Concord MA >> 978-371-1327 >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From taj at linuxgrrls.org Fri Oct 17 04:16:07 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 17 Oct 2003 11:16:07 +0100 (BST) Subject: [Rxtx] Test releases Message-ID: There are now test releases for rxtx 2.0 and rxtx 2.1. Many fixes made it into in rxtx 2.1 this year and this is an attempt to bring both releases in sync. There may be problems but the libraries should compile without issue. I've have little time before leaving for a few days and want to get these out for feedback. ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre17.tar.gz ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.0-7pre1.tar.gz No bins yet. Those will be comming for people who can't build next week. This is mainly aimed at those interested in 2.0. win32 builds will be comming next week for more testing. There may be Mac OS X fixes comming from Dmitry while I'm gone. I expect small issues. There has been very little testing done here. The goal is to let everyone have a chance to give their feedback in time. So please wait a week